home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / signal_names.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. PSIGNAL(3)          MINTLIB LIBRARY FUNCTIONS          PSIGNAL(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        psignal,  sys_siglist,  signal_names  - system signal mes-
  9.        sages
  10.  
  11. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  12.        #include <unistd.h>
  13.  
  14.        void psignal (int sig, const char *s);
  15.  
  16.        #include <siglist.h>
  17.  
  18.        extern char *sys_siglist[];
  19.  
  20.        extern char *signal_names[]; // Should not be used
  21.  
  22. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  23.        psignal produces a message on the  standard  error  output
  24.        describing  the indicated signal. The argument string s is
  25.        printed first, then a colon and a blank, then the name  of
  26.        the  signal and a new-line. (However, if s is NULL or s is
  27.        an empty string the colon is not printed.) To be  of  most
  28.        use,   the  argument string should include the name of the
  29.        program that incurred the signal. The signal number should
  30.        be from among those found in <signal.h>.
  31.  
  32.        To  simplify  variant formatting of messages, the array of
  33.        messages sys_siglist is provided; the signal number can be
  34.        used  as  an  index into this table to get the signal name
  35.        without the new-line. The constant  NSIG  defined  in  the
  36.        include file <signal.h> is the number of messages provided
  37.        for in the table.
  38.  
  39.        The array of signal names signal_names has also been  pro-
  40.        vided;  it  is  there only for backward compatibility pur-
  41.        poses, and should not be used.
  42.  
  43. N✓NO✓OT✓TE✓ES✓S
  44.        On UN*X, the string s may be empty, but may not always  be
  45.        NULL.
  46.  
  47.        MiNT signals are rather different from UN*X and POSIX.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.